package com.ibeeking.found.common.enums.cs;


/**
 * 客服台上传文件类型分类
 */
public enum CustomerSupportOrderFileEnum {


    COMPLAINT(1, "complaint"),
    RESULT(2, "result"),;


    private Integer code;

    private String name;

    public Integer getCode(){
        return this.code;
    }

    public String getName(){
        return this.name;
    }


    CustomerSupportOrderFileEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public static CustomerSupportOrderFileEnum getEnum(Integer code){
        for (CustomerSupportOrderFileEnum enums : values()){
            if(enums.code.equals(code)){
                return enums;
            }
        }
        return null;
    }

}
